package com.springyounger.lottery.dal.dao.ibatis;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.springyounger.lottery.dal.dao.UserDao;
import com.springyounger.lottery.dal.dataobject.User;

public class IbatisUserDao extends SqlMapClientDaoSupport implements UserDao {
    public User getUserById(String userId) {
        return (User) getSqlMapClientTemplate().queryForObject("getUserByUserId", userId);
    }
}
